package com.example.administrator.fangbook.read.bean;

import java.io.Serializable;
import java.util.Arrays;

/**
 * 字节流形式从服务器获取章节内容，返回的实体
 */
public class ChapterContentV4 implements Serializable {
    /**
     * 章节id
     */
    private String chapterId;
    /**
     * 图书id
     */
    private String bookId;
    /**
     * 支付链接
     */
    private String payUrl;
    /**
     * 内容（应该是当前章节内容）
     */
    private byte[] contents;
    /**
     * 磁盘（未知）
     */
    private byte[] descs;
    /**
     * 名称
     */
    private String name;
    /**
     * 章节状态
     */
    private int chapterState;
    /**
     * 价格
     */
    private long price;
    /**
     * 余额
     */
    private double balance;
    /**
     * 支付类型
     */
    private int payType;

    public int getPayType() {
        return payType;
    }

    public void setPayType(int payType) {
        this.payType = payType;
    }

    public String getPayUrl() {
        return payUrl;
    }

    public void setPayUrl(String payUrl) {
        this.payUrl = payUrl;
    }

    public byte[] getContents() {
        return contents;
    }

    public void setContents(byte[] contents) {
        this.contents = contents;
    }

    public String getChapterId() {
        return chapterId;
    }

    public void setChapterId(String chapterId) {
        this.chapterId = chapterId;
    }

    public String getBookId() {
        return bookId;
    }

    public void setBookId(String bookId) {
        this.bookId = bookId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getPrice() {
        return price;
    }

    public void setPrice(long price) {
        this.price = price;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public int getChapterState() {
        return chapterState;
    }

    public void setChapterState(int chapterState) {
        this.chapterState = chapterState;
    }

    public byte[] getDescs() {
        return descs;
    }

    public void setDescs(byte[] descs) {
        this.descs = descs;
    }

    @Override
    public String toString() {
        return "ChapterContentV4{" +
                "chapterId='" + chapterId + '\'' +
                ", bookId='" + bookId + '\'' +
                ", payUrl='" + payUrl + '\'' +
                ", contents=" + Arrays.toString(contents) +
                ", descs=" + Arrays.toString(descs) +
                ", name='" + name + '\'' +
                ", chapterState=" + chapterState +
                ", price=" + price +
                ", balance=" + balance +
                ", payType=" + payType +
                '}';
    }
}
